<template>
  <div class="dashboard-container">
    <el-row>
      <el-col :span="24">
        <div class="grid-content bg-purple" >
          <el-select v-model="value" placeholder="请选择" size="medium" class="select1" style="width:30%;">
          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"></el-option>
          </el-select>
          <el-button type="primary" icon="el-icon-search" style="margin-left:20px;">查询</el-button>
        </div>
      </el-col>
    </el-row>
	<el-row>
		<el-col :span="8">
			<div class="card-panel">
				<div class="card-panel-description">
					<div class="card-panel-text">当前小时能耗总费用：800万</div>
				</div>
			</div>
		</el-col>
		<el-col :span="8">
			<div class="card-panel">
				<div class="card-panel-description">
					<div class="card-panel-text">当天能耗总费用：56,000万</div>
				</div>
			</div>
		</el-col>
  		<el-col :span="8">
			<div class="card-panel">
				<div class="card-panel-description">
					<div class="card-panel-text">当月能耗总费用：102,356,000万</div>
				</div>
			</div>
		</el-col>  		
	</el-row>	
	<el-row>
		<el-col :span="6">
			<div class="grid-content bg-purple-light2">
				<div class="chart-title"><div class="el-icon-caret-right"></div>实时的能耗数据-水</div>
				<line-chart />
			</div>
		</el-col>
  		<el-col :span="6">
			<div class="grid-content bg-purple-light2">
			<div class="chart-title"><div class="el-icon-caret-right"></div>实时的能耗数据-电</div>
			  <line-chart />
			</div>
		</el-col>
  		<el-col :span="6">
			<div class="grid-content bg-purple-light2">
				<div class="chart-title"><div class="el-icon-caret-right"></div>实时的能耗数据-气</div>
				<line-chart />
			</div>
		</el-col>
		<el-col :span="6">
			<div class="grid-content bg-purple-light2">
				<div class="chart-title"><div class="el-icon-caret-right"></div>实时的能耗数据-市政</div>
				<line-chart />
			</div>
		</el-col>
	</el-row>
	<el-row>
		<el-col :span="12">
			<div class="dgrid-content bg-purple-light2">
				<div class="chart-title"><div class="el-icon-caret-right"></div>当天逐时能耗费用曲线</div>
				<line-chart-bot/>
			</div>
		</el-col>
  		<el-col :span="12">
			<div class="grid-content bg-purple-light2">
				<div class="chart-title"><div class="el-icon-caret-right"></div>本月逐时能耗费用曲线</div>
				<line-chart-bot1/>
			</div>
		</el-col>  		
	</el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import PieChart from './components/PieChart'
import BarChart from './components/BarChart'
import LineChart from './components/LineChart'
import LineChartBot from './components/LineChartBot'
import LineChartBot1 from './components/LineChartBot1'
export default {
  name: 'EnergyManage',
  
	components: {
		PieChart,
		BarChart,
		LineChart,
		LineChartBot,
		LineChartBot1
	},
	data() {
      return {
        options: [{
          value: 'enery1',
          label: '第一号能源站',
          
        }, {
          value: 'enery2',
          label: '第二号能源站'
        }, {
          value: 'enery3',
          label: '第三号能源站'
        }, {
          value: 'enery4',
          label: '第四号能源站'
        }, {
          value: 'enery5',
          label: '第五号能源站'
        }],
        value: ''
      }
    }
}



</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.el-row {
    
    &:last-child {
      margin-bottom: 0;
    }
  }
 
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple-light2 {
    background: #fff;
	height: 280px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	color: #666;
	background: #fff;
	border-style:solid; 
	border-color: black;
	border-width: 3px;
	box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
	border-color: rgba(0, 0, 0, .05);
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
 

  .card-panel-text {
        line-height: 80px;
        color: black;
        font-size: 22px;
        margin-bottom: 10px;
		margin-left: 20%;
	}
	.card-panel {
		height: 80px;
		cursor: pointer;
		font-size: 12px;
		position: relative;
		overflow: hidden;
		color: #666;
		background: #fff;
		border-style:solid; 
		border-color: black;
		border-width: 3px;
		box-shadow: 4px 4px 40px rgba(0, 0, 0, .05);
		border-color: rgba(0, 0, 0, .05);
	}
	 .chart-title{
    height: 25px;
    line-height: 25px;
    font-size: 18px;
    border-bottom: 1px #efefef solid;

  }
  .chart-content{
    height: calc(100% - 25px);
  }
</style>
